directory_tree = dataset.directory_tree directory_tree = project.datasets.directory_tree(dataset='dataset_entity') # # Get dataset's directory tree. # # **Prerequisites**: You must be an *owner* or *developer* to use this method. # # You must provide at least ONE of the following params: dataset, dataset_name, dataset_id. # # :param dtlpy.entities.dataset.Dataset dataset: dataset object # :param str dataset_name: The Name of the dataset # :param str dataset_id: The Id of the dataset # :return: DirectoryTree # #
{- "value": {
- "id": "string",
- "url": "string",
- "datasetId": "string",
- "dir": "string",
- "filename": "string",
- "name": "string",
- "type": "file",
- "spec": "MasterItemSpec",
- "hidden": true,
- "metadata": {
- "system": {
- "modalities": [
- {
- "ref": "string",
- "refType": "url",
- "type": "overlay",
- "timestamp": "2019-08-24T14:15:22Z",
- "name": "string",
- "mimetype": "string",
- "stream": "string"
}
], - "width": 0,
- "height": 0,
- "originalPath": "string",
- "encoding": "string",
- "size": 0,
- "mimetype": "string",
- "originalname": "string"
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "dataset": "string",
- "creator": "string",
- "description": "string",
- "signedStream": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "items": "string",
- "export": {
- "json": "string",
- "zip": "string"
}
}, - "children": [
- { }
]
}